package com.boco.pciv.service.person.impl;

import com.boco.pciv.core.entity.PageResultBase;
import com.boco.pciv.core.entity.SearchCriteria;
import com.boco.pciv.core.service.PcivBaseServiceImpl;
import com.boco.pciv.core.util.SearchUtil;
import com.boco.pciv.entity.project.PersonInfo;
import com.boco.pciv.mapper.person.IPersonMapper;
import com.boco.pciv.service.person.IPersonService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonServiceImpl extends PcivBaseServiceImpl<IPersonMapper, PersonInfo,Integer> implements IPersonService {

    public PageResultBase personCompanylist(SearchCriteria cond){
        if (cond==null){
            cond = new SearchCriteria();
        }
        List<PersonInfo> list = mapper.personCompanylist(cond.getQueryMap());
        return SearchUtil.parse(list);
    }
}
